package com.flyme.module.base.client.api;

import com.flyme.common.core.model.ResultBody;
import com.flyme.common.core.model.query.PagerInfo;
import com.flyme.module.base.client.entity.SysExamination;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/examination/")
public interface SysExaminationRemoteService {

    /**
     * 考试安排列表
     */
    @PostMapping("/list")
    ResultBody list(@ModelAttribute PagerInfo pagerInfo, @ModelAttribute SysExamination examination);

    /**
     * 添加/修改
     */
    @PostMapping("/examinationEdit")
    ResultBody examinationEdit(@ModelAttribute SysExamination examination);

    /**
     * 开启/关闭考试
     */
    @PostMapping("/setOpenStatus")
    ResultBody setOpenStatus(@RequestParam Long id, @RequestParam Integer isOpen);

    /**
     * 根据考试id查询详情
     */
    @GetMapping("/get/{id}")
    ResultBody get(@PathVariable Long id);

}
